import {FC} from "react";
import { Select } from 'antd';

interface  TaxItemRateProps  {
    value?: any[];
    rateArray?: any[];
    rateChange?: Function;
}

const TaxItemRate:FC<TaxItemRateProps> = (props: any) => {
    const {value,rateArray,rateChange} = props;
    let newValue = value?value:'100%';
    let optionList = rateArray

    return (
        <Select
            defaultValue={newValue}
            onChange={rateChange}
            options={optionList}
            />
    )
};

export default TaxItemRate;
